// (function () {
//     let title = $("#txtDCntAName").val() == null ? $('#qxCT').combo('getText') : $("#txtDCntAName").val();
//     let data = {
//         "title": title,
//         "topn": 5,
//         "master_department" : "",
//         "slave_department" : "",
//         "resolved" : "",
//         "satisfied" : "",
//         "key_points" : "",
//         "time" : ""
//     }
//     $.ajax({
//         url: "/api/bd/caseRecommend",
//         data: JSON.stringify(data),
//         type: "POST",
//         dataType: "json",
//         contentType: "contentType: 'application/json;charset=UTF-8',",
//         beforeSend: function () {
//             $('#loading').modal('show');
//         },
//         complete: function () {
//             $('#loading').modal('hide');
//         },
//         success: function (res) {
//             // data = jQuery.parseJSON(data);  //dataType指明了返回数据为json类型，故不需要再反序列化
//             var contentObj = document.getElementsByClassName("content")[0];
//             let data = res.data;
//             if(data.content.length == 0){
//                 contentObj.innerHTML = '没有数据';
//                 $('#expandBtn').parent().hide();
//             }else {
//                 var isHtml = "";
//                 var arr = data.content;
//                 for (var i = 0; i < arr.length; i++) {
//                     console.log(arr[i])
//                     let cid = arr[i].cid == null ? '暂无' : arr[i].cid;
//                     isHtml += '<div class="col-sm-12 work-box">';
//                     isHtml += '<div class="work-box-top">';
//                     isHtml += '<div class="col-sm-12 work-box-top-box">';
//                     isHtml += '<div class="col-sm-10"><a class="work-box-a"><span>承办部门：' + arr[i].masterDepartment + '</span></a></div>';
//                     isHtml += '<div class="col-sm-10"><a class="work-box-a"><span>关键词：' + arr[i].keyPoints + '</span></a></div>';
//                     isHtml += '</div>';
//                     isHtml += '<div class="col-sm-12 work-box-top-class">'
//                     isHtml += '<div class="col-sm-6"><a style="color: inherit">相似度：'+Number(arr[i].score * 100).toFixed(1) + "%"+'</a></div>'
//                     isHtml += '<div class="col-sm-6" ondblclick="caseDetail('+cid+')"><a style="color: inherit">案件编号：'+ cid +'</a></div>'
//                     isHtml += '</div>'
//                     isHtml += '<div class="col-sm-12 work-box-class"><a style="color: inherit">案件描述：'+ arr[i].title + '</a></div>';
//                     isHtml += '<div class="col-sm-12 work-box-buttom">';
//                     isHtml += '<div class="col-sm-6">最近办结（解决）时间：' + arr[i].time + '</div>';
//                     isHtml += '<div class="col-sm-4"><div class="col-sm-12 entering-pd">处理情况：'+arr[i].resolved+'</div></div>';
//                     isHtml += '</div>';
//                     isHtml += '</div>';
//                     isHtml += '</div>';
//                 };
//             }
//             contentObj.innerHTML = isHtml;
//         }
//     });
// })()

//操作记录
function operatingRecord(){
    var telId = document.getElementById('pkId').value;
    var url = '/system/mTelRcd/operationLog/'+telId;
    var title = '操作记录';
    var height="500px";
    var width="500px";
    var options = {
        url: url,
        title: title,
        height: height,
        width:width,
        skin: 'layui-layer-gray',
        btn: ['关闭'],
        yes: function (index, layero) {
            $.modal.close(index);
        }
    }
    $.modal.openOptions(options);
}

lay('#version').html('-v' + laydate.v);

//执行一个laydate实例
//接听
laydate.render({
    elem: '.answerTime', //指定元素
    format: 'yyyy-MM-dd HH:mm:ss',
    type: 'datetime'
});
//挂断
laydate.render({
    elem: '.hangUpTime', //指定元素
    format: 'yyyy-MM-dd HH:mm:ss',
    type: 'datetime'
});


